package com.poker;

/**
 * 由于不知道具体规则，假定此处：杂牌<对子<三条<四条<顺子
 * 且不比较花色
 */
public enum PokerTypeEnum implements BaseEnum{
    ZA_PAI(0, "杂牌"), DUI_ZI(1, "对子"), SAN_TIAO(2, "三条"), SI_TIAO(3, "四条"), SHUN_ZI(4, "顺子");
    private Integer backValue;
    private String viewValue;

    private PokerTypeEnum(int backValue, String viewValue) {
        this.backValue = backValue;
        this.viewValue = viewValue;
    }

    @Override
    public Integer getBackValue() {
        return backValue;
    }

    public String getViewValue() {
        return viewValue;
    }

}
